package com.yeepay.mp.daemon;

import java.util.Calendar;

import com.yeepay.mp.common.facade.FacadeExchangeSettlementService;
import com.yeepay.mp.common.facade.FacadeForeignExchangeService;

public class TrxResultQueryDeamon {
	private FacadeExchangeSettlementService facadeExchangeSettlementService;
	private FacadeForeignExchangeService facadeForeignExchangeService;
	
	public void execute(){
		Calendar currentDate=Calendar.getInstance();
		currentDate.add(Calendar.DATE, -1);
		
		facadeExchangeSettlementService.updateProcessing(currentDate);
		facadeForeignExchangeService.updateProcessing(currentDate);
	}
	
	public void setFacadeExchangeSettlementService(
			FacadeExchangeSettlementService facadeExchangeSettlementService) {
		this.facadeExchangeSettlementService = facadeExchangeSettlementService;
	}
	public void setFacadeForeignExchangeService(
			FacadeForeignExchangeService facadeForeignExchangeService) {
		this.facadeForeignExchangeService = facadeForeignExchangeService;
	}
}
